<%@ page language="java" pageEncoding="utf-8"%>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html lang="true">
  <head>
    <html:base />
    
    <title>EnterWare2.jsp</title>

	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<script type="text/javascript">
	 function search(){
		 window.open("purchaseOrder.jsp","_self");
	 }
	function abc(){
		return window.confirm("确定要删除吗?");
	}
	</script>
${requestScope.message}
  </head>
  
  <body>
    <%@ include file="header.jsp"%>
<table width="780" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr>
    <td width="120" valign="top" background="../images/in_left_bg.gif"><%@ include file="purchasingLeft.jsp"%></td>
    <td width="660" align="center" valign="top">
	<p align="center" class="title1">采购订单管理档案</p>
    <table width="640"  border="1" cellpadding="3" cellspacing="0" bordercolor="#CCCCCC">
      <tr bgcolor="#E7E7E7">
        <td width="45"><div align="center">订单号</div></td>
        <td width="45"><div align="center">物料编号</div></td>
        <td width="45"><div align="center">物料名称</div></td>
        <td width="45"><div align="center">物料数量</div></td>
        <td width="45"><div align="center">物料单价</div></td>
        <td width="45"><div align="center">物料总额</div></td>
        <td width="45"><div align="center">下单时间</div></td>
         <td width="45"><div align="center">购买时间</div></td>
        <td width="60"><div align="center">供应商编号</div></td>
        <td width="50"><div align="center">供应商</div></td>
         <td width="50"><div align="center">申请部门</div></td>
          <td width="120"><div align="center">备注</div></td>
          <td width="120" align="center" colspan="2">操作</td>
      </tr>
	<c:forEach var="list" items="${requestScope.list}">
      <tr>
        <td width="45"><div align="center">${list.pordId}</div></td> 
        <td width="45"><div align="center">${list.maCode}</div></td>
        <td width="45"><div align="center">${list.maName}</div></td>
        <td width="45"><div align="center">${list.maNum}</div></td>
        <td width="45"><div align="center">${list.maPrice}</div></td>
        <td width="45"><div align="center">${list.maAmount}</div></td>
        <td width="45"><div align="center">${list.pordDate}</div></td> 
        <td width="60"><div align="center">${list.purDate}</div></td>
        <td width="50"><div align="center">${list.proCode}</div></td>
        <td width="50"><div align="center">${list.proName}</div></td>
         <td width="50"><div align="center">${list.departId}</div></td>
        <td width="120"><div align="center">${list.note}</div></td>
        <td width="60" align="center" bgcolor="#E1EEF8"><a href="modifyPurOrder.jsp?flag=modify&id=${list.pordId}">修改</a></td>
         <td width="60"><div align="center"><a href="purOrderManage.do?flag=delete&id=${list.pordId}" onclick="return abc();">删除</a></div></td>
      </tr>
	 </c:forEach>
    </table>
     <div align="center">当前页${requestScope.pagenow}/总页数${requestScope.pagecount}
      <a href="purOrderManage.do?pagenow=1&flag=page">首页</a>
      <a href="purOrderManage.do?pagenow=${requestScope.pagenow-1<=0?1:requestScope.pagenow-1}&flag=page">上一页</a>
      <a href="purOrderManage.do?pagenow=${requestScope.pagenow+1>=requestScope.pagecount?requestScope.pagecount:requestScope.pagenow+1}&flag=page">下一页</a>
      <a href="purOrderManage.do?pagenow=${requestScope.pagecount}&flag=page">末页</a>
      <input type="button" value="查询" onclick="search();"/>
      </div>
    </td>
  </tr>
</table>
<%@ include file="footer.jsp"%>
  </body>
</html:html>
